﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace borkoSi.Models
{
    public class ProverbsModel
    {
    }

    public class Proverb
    {
        [Key]
        public int ProverbId { get; set; }
        //public int AccountId { get; set; }

        [Required(ErrorMessage = "Author is required")]
        [Display(Name = "Author")]
        [StringLength(30, ErrorMessage = "Must be under 30 char")]
        public string Author { get; set; }

        [Required(ErrorMessage = "Proverb is required")]
        [Display(Name = "Proverb")]
        [StringLength(200, ErrorMessage = "Must be under 200 char")]
        public string Content { get; set; }

        [Display(Name = "Link")]
        public string Link { get; set; }

        public DateTime DateCreated { get; set; }
        public DateTime DateModified { get; set; }

        // Accounts
        //public virtual Account Accounts { get; set; }   
    }
}